package com.shitou.springai1.admin.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("comments")
public class CommentDto implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private Long postId;
    private String stuOrTeaId;
    private String content;
    private Long parentId; // 父评论ID，用于回复功能
    private Integer status;
    @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
    private LocalDateTime createTime;
}
